<?php

/**
* 
*/
class Module
{
	protected $db = NULL;
	protected $res = NULL;
	protected $hash = NULL;
	
	public function __construct(&$data)
	{
		$this->res = $data;
		if(isset($_SESSION['hash'])) $this->hash = $_SESSION['hash'];
		$this->db = Database::getInstance();
	}
	public function __destruct()
	{
		unset($this->db);
	}
}


?>